package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.Distribution;
import com.ecoolex.hotel.saas.entity.DistributionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DistributionMapper {
    long countByExample(DistributionExample example);

    int deleteByExample(DistributionExample example);

    int deleteByPrimaryKey(Integer distributionId);

    int insert(Distribution record);

    int insertSelective(@Param("record") Distribution record, @Param("selective") Distribution.Column ... selective);

    Distribution selectOneByExample(DistributionExample example);

    List<Distribution> selectByExample(DistributionExample example);

    Distribution selectByPrimaryKey(Integer distributionId);

    Distribution selectByPrimaryKeyWithLogicalDelete(@Param("distributionId") Integer distributionId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Distribution record, @Param("example") DistributionExample example, @Param("selective") Distribution.Column ... selective);

    int updateByExample(@Param("record") Distribution record, @Param("example") DistributionExample example);

    int updateByPrimaryKeySelective(@Param("record") Distribution record, @Param("selective") Distribution.Column ... selective);

    int updateByPrimaryKey(Distribution record);

    int batchInsert(@Param("list") List<Distribution> list);

    int batchInsertSelective(@Param("list") List<Distribution> list, @Param("selective") Distribution.Column ... selective);

    int logicalDeleteByExample(@Param("example") DistributionExample example);

    int logicalDeleteByPrimaryKey(Integer distributionId);
}